Skip to content

Simplifies performance API #10327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 15, 2016
Merged

Simplifies performance API #10327

merged 2 commits into from
Aug 15, 2016

Conversation

rbuckton
Copy link
Contributor

This change streamlines the performance API and moves the various markers and measurements to Map over MapLike. As a result, some scenarios such as Angular are improved by another 3% (350ms). This change also improves integration with the ts-perf profiler, making it easier to analyze performance events.

checkSourceFileWorker(node);

performance.measure("Check", start);
performance.mark("checkEnd");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: it seems you don't have to call mark here then as the function 'measure' will call timestamp() if you don't pass the end mark anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I call mark to emit the performance event, that way I can query a cpuprofile for things like between(checkStart, checkEnd).

@yuit
Copy link
Contributor

yuit commented Aug 15, 2016

@rbuckton look good just wonder if you could send where is ts-perf profiler is, I can't find it 😅

@rbuckton rbuckton merged commit 75cb595 into master Aug 15, 2016
@rbuckton rbuckton deleted the simplePerformanceAPI branch August 15, 2016 23:42
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants